<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width,initial-scale=1,user-scalable=0"
    />
    <title>注册</title>
    <!-- 引入 WeUI CDN 链接 -->
    <link
      rel="stylesheet"
      href="https://res.wx.qq.com/open/libs/weui/2.3.0/weui.min.css"
    />
  </head>
  <body>
    <!-- 使用 -->
    <div class="weui-cells__title">注册</div>
        <div class="weui-cells weui-cells_form">
            <div class="weui-cell weui-cell_active weui-cell_vcode">
                <div class="weui-cell__hd">
                    <label class="weui-label">手机号</label>
                </div>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="tel" placeholder="请输入手机号"/>
                </div>
                <div class="weui-cell__ft">
                    <button class="weui-vcode-btn">获取验证码</button>
                </div>
            </div>
            <div class="weui-cell weui-cell_active weui-cell_vcode">
                <div class="weui-cell__hd"><label class="weui-label">验证码</label></div>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="number" placeholder="请输入验证码"/>
                </div>
                <div class="weui-cell__ft">
                    <img class="weui-vcode-img" src="../images/vcode.jpg" />
                </div>
            </div>
        </div>

        <label for="weuiAgree" class="weui-agree">
            <input id="weuiAgree" type="checkbox" class="weui-agree__checkbox"/>
            <span class="weui-agree__text">
                阅读并同意<a href="javascript:">《相关条款》</a>
            </span>
        </label>

        <div class="weui-btn-area">
            <a role="button" class="weui-btn weui-btn_primary" href="javascript:" id="showTooltips">确定</a>
        </div>
        <div class="weui-cells__tips">底部说明文字</div>
    </div>
    <script type="text/javascript">
        $(function(){
            var $tooltips = $('.js_tooltips');
    
            $('#showTooltips').on('click', function(){
                if ($tooltips.css('display') != 'none') return;
    
                // toptips的fixed, 如果有`animation`, `position: fixed`不生效
                $('.page.cell').removeClass('slideIn');
    
                $tooltips.css('display', 'block');
                setTimeout(function () {
                    $tooltips.css('display', 'none');
                }, 2000);
            });
        });
    </script>
  </body>
</html>
